From 6e2c5518968529bb1acab66b54f2e61dcaacf000 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sun, 31 Jan 2016 16:17:03 +0100 Subject: [PATCH] entry: Fix icon areas Do the same thing we already do in gtk_entry_get_text_area. --- gtk/gtkentry.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 4f169a76f0..68e6b5a429 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -9119,7 +9119,11 @@ gtk_entry_get_icon_area (GtkEntry *entry, if (icon_info) { + GtkAllocation widget_allocation; + gtk_widget_get_allocation (GTK_WIDGET (entry), &widget_allocation); gtk_css_gadget_get_border_allocation (icon_info->gadget, icon_area, NULL); + icon_area->x -= widget_allocation.x; + icon_area->y -= widget_allocation.y; } else { -- 2.30.2